import { createRouter, createWebHistory } from 'vue-router'
import managerChildren from './managerMenu'

const routes = [
    { path: '/', component: () => import('../views/manager.vue'), meta: { title: '管理员登录' } },
    { 
        path: '/main',
        component: () => import('../pages/main.vue'),
        meta: { title: '首页' },
        children: managerChildren
    },
]
const router = createRouter({
    history: createWebHistory(), //如需二级目录，在这里加createWebHistory('/二级目录名/')
    routes
})
export default router